<!DOCTYPE html>
<html>
<head>
  <title>OSexpress</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
  <p class="notice"><%= notice %></p>   <p class="alert"><%= alert %></p>
  <%= link_to('回到首页','/') %>
  <% if current_user %>
      <% if current_user.admin %>
       <%= link_to('控制面板','/manage/control',:style=>"align=right") %>|
      <% end %>
      <%= link_to('营业','/manage/index',:style=>"align=right")%>
      <%= link_to('注销', destroy_user_session_path, :method => :delete,:style=>"align=right") %> |
      <%= link_to('修改密码', edit_registration_path(:user),:style=>"align=right") %>
  <% else %>
      <%= link_to('注册', new_registration_path(:user),:style=>"align=right") %> |
      <%= link_to('登陆', new_session_path(:user),:style=>"align=right") %>
  <% end %>
</head>
<body background="/assets/background.jpg" style="background-repeat:no-repeat;" >

<%= yield %>

</body>
</html>
